package com.zmm.study.car.dao;

import com.zmm.study.car.pojo.Series;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * description
 * name SeriesDao
 *
 * @author Zebulon
 * @date by 2022-05-06 16:35:16
 */
public interface SeriesDao {

    int deleteByPrimaryKey(Integer seriesId);

    int insert(Series record);

    int insertSelective(Series record);

    Series selectByPrimaryKey(Integer seriesId);

    int updateByPrimaryKeySelective(Series record);

    int updateByPrimaryKey(Series record);

    List<Series> selectSeriesByBrand(Integer brandId);

    Series selectSeriesByBrandIdAndSeriesName(@Param("brandId") Integer brandId, @Param("seriesName") String seriesName);
}
